// import qs from 'qs'
import request from '@/utils/open/request'

var IdentiryURL = window.g.WEBAPI_IDENTITY

export const oauth2Api = {
  /**
   * 获取部门详情
   * @param {any} params
   */
  getWxWorkAuthorizeUrl (data, params) {
    const url = IdentiryURL + 'api/oauth2/wx/work/authorize'
    return request.get(url, data, params)
  },

  /**
   * 获取子部门的数据
   * @param {*} data
   * @param {*} params
   * @returns
   */
  getWxWorkUserInfo(data, params) {
    const url = IdentiryURL + 'api/oauth2/wx/work/authorize/userinfo'
    return request.get(url, data, params)
  }
}
